<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<style type="text/css">
input {
	margin-top: 5px;
	margin-bottom: 5px;
}
select {
	margin-top: 5px;
	margin-bottom: 5px;
}
</style>
<div style="width: 240px; margin-left: 30px;">
<form action="savexs" method="post">
		<input type="hidden" name="id" value="${model.id}">
		<input type="hidden" name="password" value="${model.password}">
		<p>姓名：<input type="text" name="name" value="${model.name}"></p>
		<p>学号：<input type="text" name="username" value="${model.username}"></p>
		<p>密码：<input type="text" name="password" value="${model.password}"></p>
		<p>职务：<input type="text" name="post" value="${model.post}"></p>
		<p>性别：<input type="text" name="sex" value="${model.sex}"></p>
		<p>班级：<select name="tbClass.id">
			<c:forEach items="${bjs}" var="bj">
				<option value="${bj.id}" ${model.tbClass.id == bj.id ?"selected='selected'":""}>${bj.name}</option>
			</c:forEach>
		</select></p>
		<button type="submit">提交</button>
		<button type="reset">重置</button>
	</form>
</div>